package models;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import controllers.Security;

import play.db.jpa.Model;
import play.mvc.With;

@Entity
public class Curso extends Model{
	public String nombrecurso;
	public int  numerocreditos;
	public int codigocurso;
	
	@ManyToOne
	public PlanEstudio planEstudio;
	
	public Curso (PlanEstudio planEstudio,String nombrecurso,int numerocreditos,int codigocurso){
		this.nombrecurso=nombrecurso;
		this.numerocreditos=numerocreditos;
		this.codigocurso=numerocreditos;
		this.planEstudio=planEstudio;
	}
}
